import type { BaseResponse_long_ } from "../models/BaseResponse_long_";
import type { BaseResponse_Page_QuestionSubmitQueryVO_ } from "../models/BaseResponse_Page_QuestionSubmitQueryVO_";
import type { BaseResponse_QuestionSubmitQueryVO_ } from "../models/BaseResponse_QuestionSubmitQueryVO_";
import type { QuestionSubmitAddRequest } from "../models/QuestionSubmitAddRequest";
import type { QuestionSubmitQueryRequest } from "../models/QuestionSubmitQueryRequest";
import type { CancelablePromise } from "../core/CancelablePromise";
import { OpenAPI } from "../core/OpenAPI";
import { request as __request } from "../core/request";

export class QuestionSubmitControllerService {
  /**
   * @deprecated
   * doQuestionSubmit
   * @param questionSubmitAddRequest questionSubmitAddRequest
   * @returns BaseResponse_long_ OK
   * @returns any Created
   * @throws ApiError
   */
  public static doQuestionSubmitUsingPost1(
    questionSubmitAddRequest: QuestionSubmitAddRequest
  ): CancelablePromise<BaseResponse_long_ | any> {
    return __request(OpenAPI, {
      method: "POST",
      url: "/api/do_submit",
      body: questionSubmitAddRequest,
      errors: {
        401: `Unauthorized`,
        403: `Forbidden`,
        404: `Not Found`,
      },
    });
  }

  /**
   * @deprecated
   * getQuestionSubmitById
   * @param questionSubmitQueryRequest questionSubmitQueryRequest
   * @returns BaseResponse_QuestionSubmitQueryVO_ OK
   * @returns any Created
   * @throws ApiError
   */
  public static getQuestionSubmitByIdUsingPost1(
    questionSubmitQueryRequest: QuestionSubmitQueryRequest
  ): CancelablePromise<BaseResponse_QuestionSubmitQueryVO_ | any> {
    return __request(OpenAPI, {
      method: "POST",
      url: "/api/get_submit",
      body: questionSubmitQueryRequest,
      errors: {
        401: `Unauthorized`,
        403: `Forbidden`,
        404: `Not Found`,
      },
    });
  }

  /**
   * @deprecated
   * listQuestionSubmitQueryVOByPage
   * @param questionSubmitQueryRequest questionSubmitQueryRequest
   * @returns BaseResponse_Page_QuestionSubmitQueryVO_ OK
   * @returns any Created
   * @throws ApiError
   */
  public static listQuestionSubmitQueryVoByPageUsingPost1(
    questionSubmitQueryRequest: QuestionSubmitQueryRequest
  ): CancelablePromise<BaseResponse_Page_QuestionSubmitQueryVO_ | any> {
    return __request(OpenAPI, {
      method: "POST",
      url: "/api/get_submit_by_page",
      body: questionSubmitQueryRequest,
      errors: {
        401: `Unauthorized`,
        403: `Forbidden`,
        404: `Not Found`,
      },
    });
  }
}
